<?php
class Admin_Form_AddVctSetting extends Apps_Form {
	public function init() {

		$iframeMap = new Zend_Form_Element_Textarea('iframe_map',
					array(
						'label'			=>	'Iframe map',
						'filters'		=>	array('StringTrim'),
					    'attribs'       =>  array('style' => 'height:80px')
						)
				);

		$metaKeyword = new Zend_Form_Element_Textarea('meta_keyword',
					array(
						'label'			=>	'Meta keyword',
						'filters'		=>	array('StringTrim'),
					    'attribs'       =>  array('style' => 'height:80px')
						)
				);

		$metaDescription = new Zend_Form_Element_Textarea('meta_description',
					array(
						'label'			=>	'Meta description',
						'filters'		=>	array('StringTrim'),
					    'attribs'       =>  array('style' => 'height:80px')
						)
				);

		$headerTitle = new Zend_Form_Element_Textarea('header_title',
					array(
						'label'			=>	'Header title',
						'filters'		=>	array('StringTrim'),
					    'attribs'       =>  array('style' => 'height:30px')
						)
				);

		$hostEmail = new Zend_Form_Element_Text(
		        'host_email',
		        array('label'    => 'Host email',
		              'value'    => 'smtp.gmail.com'));

		$portEmail = new Zend_Form_Element_Text(
		        'port_email',
		        array('label'    => 'Port email',
		              'value'    => 465));

		$sslEmail = new Zend_Form_Element_Text(
		        'ssl_email',
		        array('label'    => 'SSL email',
		              'value'    => 'ssl'));

		$email = new Zend_Form_Element_Text(
		        'email',
		        array('label'    => 'Email',
		              'validators' => array('emailAddress')));

		$passwordEmail = new Zend_Form_Element_Text(
		        'password_email',
		        array('label'    => 'Password email'));

		$this->setLegend('VCT Setting');
		$this->addElements(
				array(
				        $headerTitle,
				        $metaKeyword,
				        $metaDescription,
						$iframeMap,
				        $hostEmail,
				        $portEmail,
				        $sslEmail,
				        $email,
				        $passwordEmail
						)
				);
		$this->addActionGroup();
		$this->makeup();
	}
}
